﻿#region Styx Namespaces
using Styx;
using Styx.CommonBot.Routines;
#endregion

namespace GiwinMonk
{
    public partial class Monk : CombatRoutine
    {

        /// <summary>
        /// Cost: 5.5% of Base Mana |
        /// Range: 0 Yards |
        /// Cast Time: Instant |
        /// GCD: 1 Second |
        /// WoWHead Hyperlink: http://www.wowhead.com/spell=101546
        /// </summary>


        public bool SpinningCraneKick()
        {
            return (MIRsettings.Instance.SpinningCraneKick) &&  
                (StyxWoW.Me.CurrentTarget != null) &&
                   StyxWoW.Me.EnergyPercent >= 30 &&
                   StyxWoW.Me.CurrentTarget.Distance <= 8 &&
                   CanCast("Spinning Crane Kick") &&
                   Adds.Count > 1;
        }
    }
}
